<?php

namespace component\system\system_message;

use think\Validate;

class SystemMessageValidate extends Validate
{
    protected $rule = [
        'title' => 'require|length:1,255',
        'message' => 'require',
    ];

    protected $message = [
        'title.require' => '请输入通知标题',
        'title.length' => '通知标题长度不正确,允许的长度1~255',
        'message.require' => '请输入内容',
    ];
}